
package com.compuvest.web;

import java.io.Serializable;

public class Category implements Serializable {

    private int categoryID;
    private int parent;
    private String name;
    private int itemsInCategory;

    public Category() {
		this(0, 0, "", 0);
    }

    public Category(int categoryID, int parent, String name, int itemsInCategory) {
		this.categoryID = categoryID;
		this.parent = parent;
		this.name = name;
		this.itemsInCategory = itemsInCategory;
    }

    public int getCategoryID()		{ return categoryID; }
    public int getParent()			{ return parent; }
    public String getName()			{ return name; }
    public int getItemsInCategory()	{ return itemsInCategory; }

	@Override
	public String toString() {
		return "[categoryID:"+categoryID+",parent:"+parent+",name:"+name+",itemsInCategory"+itemsInCategory+"]";
	}
}
